<?php 
	$MSG_ERR = 0; 
	$_ModelPaymentMode = array('BD'=>'D','OF'=>'B','HD'=>'E');
	if($GetMethodParams[1]['METRIC']=='FIXEDSIZE' && count($data['Transaction']) != $GetMethodParams[1]['LENGTH']){
		$Msg_ERROR = 'Dados Inválidos';
	} elseif($GetMethodParams[1]['METRIC']=='VARSIZE' && count($data) != $GetMethodParams[1]['LENGTH']){
		$Msg_ERROR = 'Dados Inválidos';
	} else {
	$row++;	
        $fdata[0] = 'N';																																										#METHOD CODE	R	1	Char

        $ftdata .= '(&#TransactOrder#&,\''.$sysTime.'\',';
        $ftdata_extend .= '(&#ExtendedID'.$row.'#&,';
        $ftdata_income .= '(&#ExtendedID'.$row.'#&,';


# Fields Array
$FraPosition['CodeTransactionStatus'] = array('FraStatus',array('facturas'));
$FraPosition['TransactionDate'] = array('FraFechaIngreso',array('facturas'));
$FraPosition['CodeTransaction'] = array('FraIncCorrCo',array('facturas_income'));
$FraPosition['ReceiveValue'] = array('FraFechaAlb',array('facturas'));
$FraPosition['IsoCodeCurrency'] = array('FraMonDPago',array('facturas'));
$FraPosition['Notes'] = array('FraNotas',array('facturas'));
$FraPosition['SenderName'] = array('FraCliNombre',array('facturasextjoins'));
$FraPosition['SenderStreet'] = array('FraCliDomicilio',array('facturasextjoins'));
$FraPosition['SenderCountry'] = array('FraCLPais',array('facturasextjoins'));
$FraPosition['Document'] = array('FraCliDNI',array('facturasextjoins'));
$FraPosition['ReceiverName'] = array('FraBnfNombre',array('facturasextjoins'));
$FraPosition['ReceiverIdNumber'] = array('FraBnfCedula',array('facturasextjoins'));
$FraPosition['ReceiverStreet'] = array('FraBnfDireccion',array('facturasextjoins'));
$FraPosition['ReceiverZipCode'] = array('FraBnfBarrio',array('facturasextjoins'));
$FraPosition['ReceiverCity'] = array('FraBnfCiudad',array('facturasextjoins'));
$FraPosition['ReceiverPhone'] = array('FraReferenciaCo',array('facturas'));
$FraPosition['ReceiverCountry_attr'] = array('FraStatus',array('facturas'));
$FraPosition['PaymentMode'] = array('FraModoPago',array('facturas'));
$FraPosition['BankName'] = array('FraCbBanco',array('facturasextjoins'));
$FraPosition['AgencyName'] = array('FraSucursal',array('facturasextjoins'));
$FraPosition['AccountNumber'] = array('FraCuenta',array('facturasextjoins'));
$FraPosition['CodeDestination'] = array('FraStatus',array('facturas'));
	echo 1; die;
/*
<CodeIncident>1315793</CodeIncident>
<CodeTransaction>2</CodeTransaction>
<TransactionVersion>1</TransactionVersion>
<CodeIncidentStatus>1</CodeIncidentStatus>
<IncidentStatusDescription>Registered</IncidentStatusDescription>
<IncidentDescription>test</IncidentDescription>
<DateIncident>
<Year>2010</Year>
<Month>10</Month>
<Day>20</Day>
<Hour>16</Hour>
<Min>28</Min>
<Sec>51</Sec>
</DateIncident>
<FieldToModify>
<FieldName>CodeTransactionStatus</FieldName>
<FieldOldValue>REG</FieldOldValue>
<FieldNewValue>CCL</FieldNewValue>
</FieldToModify>														
		*/																																						$ftdata_income .=  	$CorrProperties[1]['CorrNumero'].',&#TransactOrder#&,&#TransactTrans#&,';
	
		
	}